package com.creditease.shield.flow.timer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.creditease.shield.flow.service.KeyBankService;

@Component("keyBankTask")
public class KeyBankTask {

	private static final Logger log = LoggerFactory.getLogger(KeyBankTask.class);

	@Autowired
	private KeyBankService keyBankService;

	@Scheduled(cron = " 0/60 * * * * ? ")
	@Async
	public void updateKeyValue() {
		log.info("KeyBank Task start.............");

		keyBankService.updateKeyValue();

	}
}
